package site.lanmushan.framework.authorization.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Administrator
 */
@ConfigurationProperties(prefix = "slash.authorization")
@EnableConfigurationProperties(AuthorizationProperties.class)
@Configuration
@Data
public class AuthorizationProperties {
    /**
     * 模式
     */
    private String mode="jwt";
    /**
     * 秘钥
     */
    private String secretKey="ad4stabilized2by2maki";
    /**
     * 周期(秒)
     */
    private Integer duration=108000;
}
